from django.urls import path
from .views import CategoryView, QuestionView, AnswerView, QuestionDetailView, ViewsUpdateView

urlpatterns = [
    path('categories/', CategoryView.as_view(), name='category_list'),
    path('questions/', QuestionView.as_view(), name='question_list'),
    path('answers/', AnswerView.as_view(), name='answer_list'),
    path('question-detail/', QuestionDetailView.as_view(), name='question_detail'),
    path('views-update/', ViewsUpdateView.as_view(), name='views_update'),
]
